module.exports = {
  devServer: {
    hot: true,
    inline: true,
    watchOptions: {
      poll: true
    },
    port: 8090,
    open: true,
    overlay: {
      warnings: false,
      errors: true
    },
    proxy: {
      // change xxx-api/login => mock/login
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      ['/api']: {
        target: 'http://localhost:8080/',
        changeOrigin: true,
        pathRewrite:{
            '^/api':''
        }
      }
    }
  }
}
